package org.flower.entity;

/**
 * 订单详情实体类
 */
public class OrderDetails {
    /**
     * 编号
     */
    private int id;
    /**
     * 商品编号
     */
    private int comdetailsId;
    /**
     *  订单编号
     */
    private String orderId;
    /**
     * 商品数量
     */
    private int num;
    /**
     * 小计
     */
    private double totalPrice;

    public int getId() {
        return id;
    }

    public int getComdetailsId() {
        return comdetailsId;
    }

    public String getOrderId() {
        return orderId;
    }

    public int getNum() {
        return num;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setComdetailsId(int comdetailsId) {
        this.comdetailsId = comdetailsId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public OrderDetails(int id, int comdetailsId, String orderId, int num, double totalPrice) {
        this.id = id;
        this.comdetailsId = comdetailsId;
        this.orderId = orderId;
        this.num = num;
        this.totalPrice = totalPrice;
    }

    public OrderDetails() { }
}
